<#--
* Recursive
-->
<#macro Recursive dataList fieldID fieldParentID parentidValue level=0 separator="<span style='padding:0px 10px'>&nbsp;</span>" dataIndex=0>
    <#if dataList?? && dataList?size gt 0>  
        <#list dataList as dataItem>
            <#if dataItem[fieldParentID] == parentidValue>
                <#local dataIndex = dataIndex + 1 />
                <#nested dataItem level separator dataIndex>
                <#local level = level + 1 />  
                <@Recursive dataList fieldID fieldParentID dataItem[fieldID] level separator dataIndex;dataItem,level,separator,dataIndex>
                    <#local dataIndex = dataIndex />
                    <#nested dataItem level separator dataIndex>
                </@Recursive>
                <#local level = level - 1 />
            </#if>
        </#list>
    </#if>
</#macro>